<?php
declare(strict_types=1);

namespace app\admin\service;

use app\admin\model\ResourceCheck as ResourceCheckModel;

class ResourceCheckService
{
    /**
     * 社群审核总数
     * @param array $where
     * @return int
     */
    public static function countResourceCheck($where = [])
    {
        return ResourceCheckModel::countResourceCheck($where);
    }

    /**
     * 单审核数据
     * @param $where
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function findResourceCheck($where)
    {
        return ResourceCheckModel::findResourceCheck($where);
    }

    /**
     * 更新审核数据
     * @param $data
     * @param $where
     * @return ResourceCheckModel
     */
    public static function updateResourceCheck($data, $where)
    {
        return ResourceCheckModel::updateResourceCheck($data, $where);
    }
}